package com.solo.system.dubbo;

import com.solo.system.api.SysConfigApi;
import com.solo.system.api.entity.SysConfig;
import com.solo.system.mapper.SysConfigMapper;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * 系统配置实现类
 * @author 十一
 * @since 2023/12/11 17:14
 * 人生若只如初见，何事秋风悲画扇
 **/
@Service
@DubboService
@RequiredArgsConstructor
public class SysConfigApiImpl implements SysConfigApi {

    private final SysConfigMapper sysConfigMapper;

    public SysConfig selectConfigByKey(String key) {
        return sysConfigMapper.selectByKey(key);
    }

}
